<?php /* Smarty version Smarty-3.1.13, created on 2014-10-27 22:56:10
         compiled from "D:\workspace\php\cms\templates\admin\menu.tpl" */ ?>
<?php /*%%SmartyHeaderCode:27378544e5d0adc8642-48361713%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd461c1936141d23116e2c9afbb4ab9fe250e77ff' => 
    array (
      0 => 'D:\\workspace\\php\\cms\\templates\\admin\\menu.tpl',
      1 => 1414419523,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '27378544e5d0adc8642-48361713',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_544e5d0ae3d962_93506832',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_544e5d0ae3d962_93506832')) {function content_544e5d0ae3d962_93506832($_smarty_tpl) {?>
<?php echo $_smarty_tpl->getSubTemplate ("admin/header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("admin/navibar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("admin/sidebar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>


<script src="<?php echo @constant('WEBSITE_URL');?>
/public/assets/js/admin/menu.js"></script>

<style type="text/css">
    div#rMenu {position:absolute; visibility:hidden; top:0; background-color: #555;text-align: left;padding: 2px;}
    div#rMenu ul li{
        margin: 1px 0;
        padding: 0 5px;
        cursor: pointer;
        list-style: none outside none;
        background-color: #DFDFDF;
    }
</style>

<div class="content">

    <!-- 表格头部开始 -->
    <div class="header">
        <div class="stats"><p class="stat"></p>
        </div>
        <h1 class="page-title">菜单管理</h1>
    </div>
    <!-- 表格头部结束 -->

    <div class="container-fluid">
        <div class="row-fluid">

            <div id="content" class="span10 bgcolor_whilt">
                <div class="box-content">

                    <div class="span4">
                        <ul id="tree" class="ztree" style="width:260px; overflow:auto;"></ul>
                    </div>

                    <div class="span6">
                        <div class="container">
                            <div class="row">
                                选择一个节点进行操作
                            </div>
                            <div class="row">
                                <div class="span1 btn-group">
                                    <button id='newNode' class="btn">新增</button>
                                </div>

                                <div class="span1 btn-group">
                                    <button id='modNode' class="btn">修改</button>
                                </div>

                                <div class="span1 btn-group">
                                    <button id="delNode" class="btn">删除</button>
                                </div>
                            </div>
                            <div class="row">

                                <div id="menu_form_add_ctr"  style="display:none;">
                                    <form id="addform" method="post" class="form-horizontal">
                                    <input type="hidden" id="pid" name="menuPId" value="0" />
                                    <div class="control-group">
                                        <label class="control-label" for="menuName">菜单名称</label>
                                        <div class="controls">
                                            <input type="text" id="menu_name_a" name="menuName" 
                                            	class="easyui-validatebox" data-options="required:true" placeholder="请输入菜单名称">
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label" for="menuHref">菜单地址</label>
                                        <div class="controls">
                                            <input type="text" id="menu_href_a" name="menuHref" placeholder="菜单地址">
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label" for="menuDesc">菜单描述</label>
                                        <div class="controls">
                                            <input type="text" id="menu_desc_a" name="menuDesc"  placeholder="菜单描述">
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label" for="menuIcon">菜单图标</label>
                                        <div class="controls">
                                            <input type="text" id="menu_icon_a" name="menuIcon" placeholder="菜单图标">
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label" for="menuClass">菜单样式</label>
                                        <div class="controls">
                                            <input type="text" id="menu_class_a" name="menuClass" placeholder="菜单样式">
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <div class="controls">
                                            <button id="menu_add_b" type="button"  class="btn btn-primary">增加菜单</button>
                                        </div>
                                    </div>
                                    </form>
                                </div>

                                <div id="menu_form_mdf_ctr" style="display:none;">
                                    <form id="editform" class="form-horizontal" method="post">
                                    <input type="hidden" name="menuId" id="menuId" value="0" />
                                    <div class="control-group">
                                        <label class="control-label" for="inputEmail">菜单名称</label>
                                        <div class="controls">
                                            <input type="text" id="menu_name_m" name="menuName" placeholder="菜单名称">
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label" for="inputPassword">菜单描述</label>
                                        <div class="controls">
                                            <input type="text" id="menu_desc_m" name="menuDesc"  placeholder="菜单描述">
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label" for="inputEmail">菜单地址</label>
                                        <div class="controls">
                                            <input type="text" id="menu_href_m" name="menuHref" placeholder="菜单地址">
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label" for="inputPassword">菜单图标</label>
                                        <div class="controls">
                                            <input type="text" id="menu_icon_m" name="menuIcon" placeholder="菜单图标">
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label" for="inputPassword">菜单样式</label>
                                        <div class="controls">
                                            <input type="text" id="menu_class_m" name="menuClass" placeholder="菜单样式">
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <div class="controls">

                                            <button id="menu_edit_b" type="button" class="btn">修改菜单</button>
                                        </div>
                                    </div>
                                    </form>
                                </div>

                            </div>
                        </div>

                    </div>

                </div>
            </div>

        </div>
    </div>

    <div id="rMenu">
        <ul>
            <li id="m_add">增加节点</li>
            <li id="m_del">删除节点</li>
        </ul>
    </div>

    <div id="nodeRemove" class="modal hide fade" role="dialog">
        <div class="modal-header">
            <h3>提示:</h3>
        </div>
        <div class="modal-body">
            <p>确定删除！
            </p>
        </div>
        <div class="modal-footer">
            <a href="javascript:void(0);" id="del_ok" class="btn" data-dismiss="modal" aria-hidden="true">确定</a>
            <a href="javascript:void(0);" id="del_cancel" class="btn btn-primary">取消</a>
        </div>
    </div>

</div>
<?php echo $_smarty_tpl->getSubTemplate ("admin/footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<?php }} ?>